package com.tm.media.utils.utils;

public enum ResultCodeEnum {
    SUCCESS(200,"OK"),
    FAIL(201,"操作失败"),
    LOGIN_SUCCESS(206,"登录成功"),
    LOGIN_FAIL(207,"账号或密码错误"),

    CODE_FAIL(208,"验证码错误"),
    NAME_REPEAT(209,"用户名重复"),
    LOCK_FAIL(202,"该用户已被锁定"),
    LOCK_SUCCESS(203,"锁定成功"),
    UNLOCK_SUCCESS(204,"解锁成功"),
    UNLOCK_FAIL(205,"该用户已经解锁"),
    ;
    private int code;
    private String msg;

    ResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
